/* --- PAGE PROJET STYLE --- */
/* Reset basique si pas déjà fait */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation Retour */
.project-nav {
    padding: 1.5rem 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #ec3f7f;
}

/* 1. Header Gradient */

.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 117, 252, 0.2), rgba(236, 63, 127, 0.2));
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
}

.project-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), 
                url('Image/IA\ agent.jpg') center/cover no-repeat;
    padding: 4rem 2rem 8rem 2rem;
    text-align: center;
    position: relative;
    color: white; /* Texte en blanc pour contraste */
    min-height: 400px; /* Hauteur minimale */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 2rem;
}

.project-main-title {
    font-size: 3rem;
    margin: 0.5rem 0;
    color: white; /* Changé en blanc */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Ombre pour lisibilité */
}

.project-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9); /* Blanc légèrement transparent */
    max-width: 700px;
    margin: auto;
}


/* Boutons d'ancrage (Sauter au projet) */
.project-anchors {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.anchor-btn {
    text-decoration: none;
    background: white;
    color: #2575fc;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.anchor-btn:hover {
    background: #2575fc;
    color: white;
    transform: translateY(-2px);
}

/* 2. Main Container */
.project-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
}

/* Titre du projet amélioré */
.project-intro {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.project-name {
    font-size: 2.5rem;
    color: #222;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-family: 'Clicker Script', cursive; 
}

.project-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 160px;
    height: 4px;
    background: linear-gradient(90deg, #2575fc, #ec3f7f);
    border-radius: 5px;
}

/* 3. Grid Layout (Contenu + Sidebar) */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Le texte prend 2/3, la sidebar 1/3 */
    gap: 3rem;
    align-items: start;
}

/* Colonne Gauche : Récit */
.story-section {
    margin-bottom: 3rem;
}

.story-section h2 {
    font-size: 1.8rem;
    color: #2575fc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-title {
    color: #ec3f7f;
}

.story-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

/* Liste à puces stylisée */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ec3f7f;
    font-weight: bold;
}

/* Cards Résultats (KPIs) */
.results-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.result-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid #2575fc;
    transition: transform 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-card .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #333;
}

.result-card .label {
    font-size: 0.9rem;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Séparateur de Section */
.project-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, #2575fc, #ec3f7f, transparent);
    margin: 5rem 0;
    animation: fadeInLeft 0.5s infinite alternate;
    opacity: 0.7;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Colonne Droite : Sidebar */
.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px; /* Colle la sidebar au scroll */
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Tags Outils Sidebar */
.tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-tag {
    background: #f1f3f5;
    color: #555;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-primary {
    display: block;
    background: #2575fc;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1a5bbf;
}

/* Responsive */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }
    
    .project-sidebar {
        order: -1; /* Place la sidebar AVANT le texte sur mobile (souvent mieux pour le contexte) */
        margin-bottom: 2rem;
    }
    
    .info-card {
        position: static; /* Enlève l'effet sticky sur mobile */
    }

    .project-main-title {
        font-size: 2rem;
    }

    .results-cards {
        grid-template-columns: 1fr; /* KPIs empilés sur mobile */
    }
}

/* ===== FOOTER STYLES ===== */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: white;
  padding: 2rem 0 1.5rem;
  margin-top: auto;
  border-top: 3px solid #ec3f7f;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ec3f7f, transparent);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-content {
  text-align: center;
  max-width: 800px;
}

.footer-logo {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo span {
  color: #ec3f7f;
  background: linear-gradient(45deg, #ec3f7f, #ff7eb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.footer-tagline {
  font-size: 1.1rem;
  color: #bdc3c7;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.footer-links {
  display: flex;
  gap: 1.7rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-links a:hover {
  color: #ec3f7f;
  background: rgba(236, 63, 127, 0.1);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  color: #95a5a6;
  font-size: 0.9rem;
}

.copyright p {
  margin: 0;
}

/* Responsive footer */
@media (max-width: 768px) {
  footer {
    padding: 2rem 0 1.5rem;
  }
  
  .footer-container {
    padding: 0 1rem;
  }
  
  .footer-logo {
    font-size: 1.8rem;
  }
  
}

@media (max-width: 480px) {
  .footer-tagline {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* Bouton Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2575fc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ec3f7f;
    transform: translateY(-3px);
}